package org.grow;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class AButton extends JButton {

    private JButton bButton;

    public JButton getbButton() {
        return bButton;
    }

    public void setbButton(JButton bButton) {
        this.bButton = bButton;
    }

    public void postConstruct() {
        setText("A");
        addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {

            bButton.setBackground(Color.BLACK);


            }
        });
    }
}
